package com.lxk.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 设备信息
 * </p>
 *
 * @author JohnSoybean
 * @since 2020-07-14
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    public class Device implements Serializable {

    private static final long serialVersionUID=1L;

      /**
     * 设备id
     */
        @TableId(value = "device_id", type = IdType.AUTO)
      private Long deviceId;

      /**
     * 设备编号
     */
      private String deviceNumber;

      /**
     * 设备名
     */
      private String deviceName;

      /**
     * 乐观锁
     */
      @Version
    private Integer version;

      /**
     * 创建时间
     */
        @TableField(fill = FieldFill.INSERT)
      private Date createTime;

      /**
     * 更新时间
     */
        @TableField(fill = FieldFill.INSERT_UPDATE)
      private Date updateTime;

      /**
     * 逻辑删除
     */
      @TableLogic
    private Integer deleted;


}
